<template>
  <div id="app" class="app">
    <transition name="fade" mode="out-in">
      <router-view></router-view>
    </transition>
  </div>
</template>

<script>
import { mapActions } from "vuex";
export default {
  components: {},
  props: {},
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {
    this.initData();
  },
  mounted() {},
  methods: {
    ...mapActions(["getCompany"]),
    initData() {
      console.log("初始化数据...");
      this.getCompany();
    }
  }
};
</script>

<style lang="scss">
.app {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: $font-family;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container {
  margin: 0;
  padding: 0;
}
.fade-enter {
  opacity: 0;
}
.fade-leave {
  opacity: 1;
}
.fade-enter-active {
  transition: opacity 0.8;
}
.fade-leave-active {
  opacity: 0;
  transition: opacit 0.8s;
}
.project-dialog {
  max-height: 800px;
  padding: 0 36px;
  overflow-y: auto;
}
.project-dialog::-webkit-scrollbar {
  width: 8px;
}
.project-dialog::-webkit-scrollbar-track {
  background-color: transparent;
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  border-radius: 2em;
}
.project-dialog::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: rgba($gray, 0.8);
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  border-radius: 2em;
}
</style>
